package com.sunwayworld.baseline.qywx.login.resource.impl;

import com.sunwayworld.framework.security.bean.QrCodeLoginStatusDTO;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import com.sunwayworld.baseline.qywx.login.bean.QywxQrCodeDTO;
import com.sunwayworld.baseline.qywx.login.resource.QywxLoginResource;
import com.sunwayworld.baseline.qywx.login.service.QywxLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@GikamBean
@RestController
public class QywxLoginResourceImpl implements QywxLoginResource {
    @Autowired
    private QywxLoginService loginService;

    @Override
    public QywxQrCodeDTO getQrCode() {
        return loginService.getQrCode();
    }

    @Override
    public QrCodeLoginStatusDTO scan() {
        return loginService.scan();
    }

    @Override
    public void syncQywx() {
        loginService.syncQywx();
    }
}
